

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class TicketMessages
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.Int64 _TicketID =-1;
public System.Int64 TicketID
{
get { return _TicketID;}
set { _TicketID = value;}
}
System.String _Message ="";
public System.String Message
{
get { return _Message;}
set { _Message = value;}
}
System.Boolean _IsUser =false;
public System.Boolean IsUser
{
get { return _IsUser;}
set { _IsUser = value;}
}
System.DateTime _MessageDate =DateTime.Now;
public System.DateTime MessageDate
{
get { return _MessageDate;}
set { _MessageDate = value;}
}
public TicketMessages()
{
}
public TicketMessages(System.Int64 __TicketID,System.String __Message,System.Boolean __IsUser,System.DateTime __MessageDate)
{
_TicketID = __TicketID;
_Message = __Message;
_IsUser = __IsUser;
_MessageDate = __MessageDate;
}
public TicketMessages(System.Int64 __ID,System.Int64 __TicketID,System.String __Message,System.Boolean __IsUser,System.DateTime __MessageDate)
{
_ID = __ID;
_TicketID = __TicketID;
_Message = __Message;
_IsUser = __IsUser;
_MessageDate = __MessageDate;
}


             public override bool Equals(object obj)
         {
             if (obj is TicketMessages)
             {
                 TicketMessages newObj = (TicketMessages)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
